<html>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link href="css/css.css" rel="stylesheet" type="text/css">
<head>
<script language='javascript' type='text/javascript'>
function getValue(){
	document.getElementById("tid").value = parent.document.getElementById("tid").value;
	return true;
}
</script>
</head>
<body>
<form name="form1" method="post" action="imgupload.php" enctype="multipart/form-data" onsubmit="getValue();">
<input type="file" name="ImgFile" size="40">
<input type="hidden" name="tid" id="tid" value="" />
<input type="submit" name="submit" value="上传">
</form>
</body> 
</html>